/**
    服务 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewHousekeepingTypeInfo:{
                index:0,
                flowComponent:'viewHousekeepingTypeInfo',
                hktName:'',
hktIcon:'',
hktDesc:'',
label:'',
seq:'',
isShow:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadHousekeepingTypeInfoData();
        },
        _initEvent:function(){
            vc.on('viewHousekeepingTypeInfo','chooseHousekeepingType',function(_app){
                vc.copyObject(_app, $that.viewHousekeepingTypeInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewHousekeepingTypeInfo);
            });

            vc.on('viewHousekeepingTypeInfo', 'onIndex', function(_index){
                $that.viewHousekeepingTypeInfo.index = _index;
            });

        },
        methods:{

            _openSelectHousekeepingTypeInfoModel(){
                vc.emit('chooseHousekeepingType','openChooseHousekeepingTypeModel',{});
            },
            _openAddHousekeepingTypeInfoModel(){
                vc.emit('addHousekeepingType','openAddHousekeepingTypeModal',{});
            },
            _loadHousekeepingTypeInfoData:function(){

            }
        }
    });

})(window.vc);
